// @ts-ignore
/* eslint-disable */
import { request } from "@umijs/max";

/** 此处后端没有提供注释 GET /resume/del/${param0}/${param1} */
export async function delById1(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.delById1Params,
  options?: { [key: string]: any }
) {
  const { userId: param0, resumeId: param1, ...queryParams } = params;
  return request<API.BaseResponseBoolean>(`/resume/del/${param0}/${param1}`, {
    method: "GET",
    params: { ...queryParams },
    ...(options || {}),
  });
}

/** 此处后端没有提供注释 GET /resume/get/${param0}/${param1} */
export async function getById(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.getByIdParams,
  options?: { [key: string]: any }
) {
  const { userId: param0, resumeId: param1, ...queryParams } = params;
  return request<API.BaseResponseResumeVo>(`/resume/get/${param0}/${param1}`, {
    method: "GET",
    params: { ...queryParams },
    ...(options || {}),
  });
}

/** 此处后端没有提供注释 POST /resume/page */
export async function getByPage(
  body: API.ResumeQueryRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseListResumeVo>("/resume/page", {
    method: "POST",
    headers: {
      "Content-Type": "application/json",
    },
    data: body,
    ...(options || {}),
  });
}

/** 此处后端没有提供注释 POST /resume/upload */
export async function uploadResume(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.uploadResumeParams,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseString>("/resume/upload", {
    method: "POST",
    params: {
      ...params,
    },
    ...(options || {}),
  });
}
